package com.zimmur.service.impl.order;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.zimmur.dao.order.IPayExpressDao;
import com.zimmur.model.order.PayExpress;
import com.zimmur.service.order.IPayExpressService;

@Service("payExpressService")
public class PayExpressServiceImpl implements IPayExpressService{

	@Resource
	private IPayExpressDao payExpressDao;

	@Override
	public boolean insert(PayExpress payExpress) {
		return payExpressDao.insertSelective(payExpress)>0?true:false;
	}

	@Override
	public PayExpress selectByOrderId(long orderId) {
		return payExpressDao.selectByPrimaryKey(orderId);
	}
	
}
